Pixelavo\Api\Ai\Consultant B

Total Complexity 100
Dependencies 11
Dependents 1
Total lines 944
Lines of code 552
Logical lines of code 231
Comment lines 222
Methods 25
Properties 4

Methods 25

Method Rating Maintainability Complexity Lines of code
process_ai_response()
B
36 15 85
get_prompt_with_context()
A
50 9 26
get_api_key()
A
50 8 29
validate_request_params()
A
47 7 37
rename()
S
47 6 37
get()
S
47 6 35
create()
S
49 5 33
delete()
S
51 4 27
make_ai_request()
S
59 4 14
save_ai_response()
S
51 3 29
get_base_prompt()
S
54 1 59
create_error_response()
S
60 4 13
update_existing_chat()
S
56 3 19
get_chat_history()
S
56 3 18
process_provider_response()
S
65 3 10
extract_api_error_message()
S
63 3 10
decode_chat_list()
S
68 3 7
generate_chat_title()
S
65 3 8
save_user_message()
S
60 2 14
create_new_chat()
S
59 2 14
log_error()
S
72 2 5
__construct()
S
71 1 6
initialize_ai_handlers()
S
70 1 6
get_chat_by_id()
S
68 1 7
get_prompt()
S
75 1 4